<%@page import="com.xxb.dao.TypeDao"%>
<%@page import="com.xxb.entity.Type"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String typename = request.getParameter("typename");
	
	Type type = new Type();
	type.setTypename(typename);

	int rows = new TypeDao().save(type);
	
	if(rows > 0){
		response.sendRedirect("l_typelist.jsp");
	}
%>